<extend name="Index/index" />
<block name="nav1">
    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="#">Admin</a>
        </li>
        <li class="active">友情链接管理</li>
    </ul><!-- .breadcrumb -->
</block>

<block name="nav2">
    <div class="page-content">
<div class="page-header">
    <h1>
        广告
        <small>
            <i class="icon-double-angle-right"></i>
            广告管理
        </small>
    </h1>
</div><!-- /.page-header -->
<div class="row">
    <div class="col-xs-12">
        <table class="table">
 		<tr>
 			<th>编号</th>
            <th>广告图</th>
 			<th>广告链接地址</th>
 			<th>状态</th>
            <th>广告位</th>
 			<th>操作</th>
 		</tr>
 		<foreach name="list" item="v">
 			<tr>
 				<td><{$v.id}></td>
                <td><img src="__UPLOAD__/<{$v.img}>"></td>
 				<td><textarea><{$v.url}></textarea></td>
                <td>
                	<if condition="$v.status eq '1'">
                        <a href="<{:U('status',array('id'=>$v['id'],'s'=>2))}>">显示</a>
                    <else/>
                        <a href="<{:U('status',array('id'=>$v['id'],'s'=>1))}>">隐藏</a>
                    </if>
                </td>
                <td>
                    <if condition="$v.advert eq '1'">top
                    <elseif condition="$v.advert eq '2'"/>main
                    <else/>foot
                    </if>
                </td>
                <td>
                    <a href="<{:U('edit',array('id'=>$v['id']))}>" class="btn btn-danger">编辑</a>
                	<a href="<{:U('del',array('id'=>$v['id']))}>" class="btn btn-danger" id="delete">删除</a>
                </td>
 			</tr>
 		</foreach>
 	</table>
    <a href="" id="a" class="<{:U('Advert/del')}>"></a>
    <div class="pages"><{$page}></div>
    </div>
</div>     

</block>
<block name="myjs">

</block>




